package gbm;
// Code TReatmentResults.java
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTable;
import javax.swing.ListSelectionModel;
import javax.swing.border.EmptyBorder;
import javax.swing.border.LineBorder;
import javax.swing.JLabel;

public class TreatmentResults extends JFrame {

	private JPanel contentPane;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					TreatmentResults frame = new TreatmentResults();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public TreatmentResults() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 700, 700);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblReccTreatPln = new JLabel("Recommended Treatment Plans (Ranked)");
		lblReccTreatPln.setBounds(6, 19, 357, 16);
		contentPane.add(lblReccTreatPln);
		
		String columnNames[] = { "Column 1", "Column 2", "Column 3", "Column 4" };
		String dataValues[][] =
		{
			{ "1", "Temodar", "Radiation", "CCNU" },
			{ "2", "Temodar", "BCNU",""},
			{ "3", "Radiation", "Avastin", "" },

		};
		
	
		JTable tbl_treatments = new JTable(dataValues, columnNames);
		tbl_treatments.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);
		tbl_treatments.setCellSelectionEnabled(true);
		tbl_treatments.setBounds(50, 88, 496, 85);
		
		contentPane.add(tbl_treatments);
		
	

		
		String columnNamesAdd[] = { "Column 1", "Column 2", "Column 3", "Column 4" };
		String dataValuesAdd[][] =
		{
			{ "1", "Alkylating agent", "dna Inhibitor", "Signal transduction inhibitor" },
			

		};
		
		JTable tbladdTreat = new JTable(dataValuesAdd, columnNamesAdd);
		tbladdTreat.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);
		tbladdTreat.setCellSelectionEnabled(true);
		tbladdTreat.setBounds(46, 294, 500, 100);
		
	
		
		
		contentPane.add(tbladdTreat);
		
		JLabel lblAddRecc = new JLabel("Additional Recommendations");
		lblAddRecc.setBounds(18, 246, 357, 16);
		contentPane.add(lblAddRecc);
			
	
	}
}
